package com.iOS.service;

import com.iOS.dto.BlogInfoExecution;
import com.iOS.entity.BlogInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IBlogInfoService {
    /**
     * @Author:LiuYang
     * @Description:增加博客
     * @Date:13:14 2018/9/23
     */
    BlogInfoExecution  Add(BlogInfo blog);
    /**
     * @Author:LiuYang
     * @Description:增加博客
     * @Date:13:14 2018/9/23
     */
    BlogInfoExecution  Alter(BlogInfo blog );

    /**
     * @Author:LiuYang
     * @Description:删除博客
     * @Date:13:14 2018/10/2
     */
    void  Delete(int id);

    /**
     * @Author:LiuYang
     * @Description:查询全部博客
     * @Date:13:14 2018/10/2
     */
    List<BlogInfo> getBlogList();

    /**
     * @Author:LiuYang
     * @Description:查询单独博客
     * @Date:13:14 2018/10/2
     */
    BlogInfo getById(int  id);
    /**
     * @Author:LiuYang
     * @Description:修改博客
     * @Date:13:14 2018/10/2
     */

}
